// 封装全局函数,动态控制按钮权限
import store from '@/store'

export default {
  methods: {
    assignPerm(type) {
      // 获取用户的按钮权限,通过筛选,能拿到就显示
      const points = store.state.user.points
      return points.indexOf(type) !== -1
    }
  }
}
